package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.BrandEntity;

import java.util.Map;

/**
 * 品牌
 *
 * @author yangshen
 * @email yangshen@gmail.com
 * @date 2020-05-25 17:03:09
 */
public interface BrandService extends IService<BrandEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 更新pms_brand表的同时，更新与pms_brand关联的表：例如被pms_category_brand_relation中引用pms_brand的name
     * @param brand 品牌
     */
    void updateDetail(BrandEntity brand);
}

